import axios from "../utils/axios/axios";
import api from "./api";

export const register = (params) =>
  axios({
    method: "post",
    url: api.user.register,
    data: params,
  });
export const login = (params) =>
  axios({
    method: "post",
    url: api.user.login,
    data: params,
  });
export const getInfo = () =>
  axios({
    method: "get",
    url: api.user.getInfo,
    headers: {
      Authorization: localStorage.getItem("token"),
    },
  });
